'use strict';

module.exports = () => {

  const config = {
    mongoose: {
      client: {
        url: 'mongodb://wang:w415461850@localhost:27018/ybweb',
        options: {},
      },
    },
  };

  config.shortConnection = {
    // 失效时间 30天
    overdueTime: 3600 * 24 * 30,
    // 链接地址
    link: 'https://wangyabin.top/webnuxt-api/short-connection',
  };

  // OAuth
  config.OAuth = {
    qq: {
      OpenIDUrl: 'https://graph.qq.com/oauth2.0/me',
    },
    GitHub: {
      key: '64d5678063cf167251f7',
      secret: '38082496000789a97b3cc7b99f421090055e2696',
    },
  };

  return {
    ...config,
  };
};
